/*-------------------------------------------------------- 
* Module Name : OLBannerSurface
* Version : 1.0
* 
* Software Name : Qt App Template
* Version : 1.0
*
* Copyright � 2010 � 2011 France T�l�com
* This software is distributed under the LGPL v2.1 license,
* the text of which is available at http://www.gnu.org/licenses/lgpl-2.1.html
* or see the "LICENSE.txt" file for more details.
*
*--------------------------------------------------------
* File Name   : OLBannerSurface.h
*
* Created     : 07 June 2011
* Author(s)   : Omer Saleem
*
* Description :
* Modal background surface for the text banner OLBanner to
* be rendered on.
*
*--------------------------------------------------------
* 1.0 - First open source release
*
*/

#ifndef OLBANNERSURFACE_H
#define OLBANNERSURFACE_H

#include <QWidget>

#include "OLModalBackground.h"

class QParallelAnimationGroup;
class OLBanner;

class OLBannerSurface : public OLModalBackground
{
    Q_OBJECT
public:
    OLBannerSurface(bool autodismiss, QWidget *parent = 0);

    void setText(const QString& message);

private slots:
    void handleParentResize();
    void dismissBanner();

private:
    QParallelAnimationGroup* m_animGroup;
    OLBanner* m_Banner;
};

#endif // OLBANNERSURFACE_H
